package com.computer;

public class Computer implements PC{
    private String name;
    private PCbox pcBox;
    private Display display;

    @Override
    public String getComputer(){
        return "电脑名称："+this.name+"；\n=>>显示器\n"+this.display.getDisplay()+";\n=>>主机箱：\n"+this.pcBox.getPCbox()+"\n";
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public PCbox getPcBox() {
        return pcBox;
    }

    public void setPcBox(PCbox pcBox) {
        this.pcBox = pcBox;
    }

    public Display getDisplay() {
        return display;
    }

    public void setDisplay(Display display) {
        this.display = display;
    }
}
